Make Fields Required Dynamically
Question
You can find this question from this link 👉Making form fields mandatory dynamically - input of one field changes if a field is required or not
Answer
You can find the solution to the question from the video below
The Parameters for the Workflow are given below

The Code Snippet is as follows
for each item in Documents
{
if(item.Document_Id.Expiration_Date == "WithExpiration" && item.Expiration_Date == null)
{
alert "Expiration Date is needed for " + item.Document_Id.Document_Name;
cancel submit;
}
}




